<?php
    $f = fopen('./111.csv','r');

    while($array = fgetcsv($f,$delimiter=',')){
        $data[] = $array;
    }
    $conn = mysqli_connect('localhost','root','123456','data');

    foreach ($data as $key) {
        print $key[0];
        #$SQL = "INSERT INTO wt_employee(name,status) VALUES('$key[0]',1)\n";
        #mysqli_query($conn,$SQL);
    }

?>

